package agriculture.exception;

public class BusinessException extends RuntimeException {

    // 带错误信息的构造方法
    public BusinessException(String message) {
        super(message);
    }

    // 可扩展：带错误码和信息的构造方法（按需添加）
    private int code;
    public BusinessException(int code, String message) {
        super(message);
        this.code = code;
    }
    public int getCode() {
        return code;
    }
}
